package cn.anlucky.admin.generation.utils;

/**
 * 代码生成工具类
 */
public class GenUtils {


    /**
     * java类型转换成ts类型
     * @param javaType java类型
     * @return ts类型
     */
    public static String ConvertTsType(String javaType){
        switch (javaType){
            case "String":
                return "string";
            case "Integer":
                return "number";
            case "Long":
                return "number";
            case "Double":
                return "number";
            case "Float":
                return "number";
            case "BigDecimal":
                return "number";
            case "Date":
                return "string";
            case "LocalDateTime":
                return "string";
            case "Boolean":
                return "boolean";
            default:
                return "string";
        }
    }
}
